home *** CD-ROM | disk | FTP | other *** search
/ Over 1,000 Windows 95 Programs / Over 1000 Windows 95 Programs (Microforum) (Disc 1).iso / 1470 / 3dcontai.frm (.txt) < prev    next >
Visual Basic Form  |  1996-06-08  |  17KB  |  519 lines

  1. VERSION 4.00
  2. Begin VB.Form frm3DContainers 
  3.    BorderStyle     =   3  'Fixed Dialog
  4.    Caption         =   "VBMax 3D Effects Demo - Containers"
  5.    ClientHeight    =   5265
  6.    ClientLeft      =   1050
  7.    ClientTop       =   1665
  8.    ClientWidth     =   5565
  9.    Height          =   5670
  10.    Icon            =   "3DContainers.frx":0000
  11.    Left            =   990
  12.    LinkTopic       =   "Form1"
  13.    LockControls    =   -1  'True
  14.    MaxButton       =   0   'False
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   5265
  17.    ScaleWidth      =   5565
  18.    ShowInTaskbar   =   0   'False
  19.    Top             =   1320
  20.    Width           =   5685
  21.    Begin VB.CommandButton cmdClose 
  22.       Cancel          =   -1  'True
  23.       Caption         =   "Close"
  24.       Height          =   360
  25.       Left            =   4500
  26.       TabIndex        =   40
  27.       Top             =   300
  28.       Width           =   900
  29.    End
  30.    Begin VB.Frame Frame1 
  31.       Caption         =   "Frames"
  32.       Height          =   1215
  33.       Left            =   120
  34.       TabIndex        =   0
  35.       Top             =   3960
  36.       Width           =   5295
  37.       Begin VB.PictureBox picLabelContainer 
  38.          BorderStyle     =   0  'None
  39.          Height          =   915
  40.          Left            =   120
  41.          ScaleHeight     =   915
  42.          ScaleWidth      =   5115
  43.          TabIndex        =   37
  44.          Top             =   240
  45.          Width           =   5115
  46.          Begin VB.Label Label1 
  47.             Caption         =   "a PictureBox control inside the Frame."
  48.             BeginProperty Font 
  49.                name            =   "MS Sans Serif"
  50.                charset         =   0
  51.                weight          =   700
  52.                size            =   12
  53.                underline       =   0   'False
  54.                italic          =   0   'False
  55.                strikethrough   =   0   'False
  56.             EndProperty
  57.             Height          =   300
  58.             Index           =   1
  59.             Left            =   0
  60.             TabIndex        =   39
  61.             Top             =   480
  62.             Width           =   4590
  63.          End
  64.          Begin VB.Label Label1 
  65.             Caption         =   "These label controls have been placed on"
  66.             BeginProperty Font 
  67.                name            =   "MS Sans Serif"
  68.                charset         =   0
  69.                weight          =   700
  70.                size            =   12
  71.                underline       =   0   'False
  72.                italic          =   0   'False
  73.                strikethrough   =   0   'False
  74.             EndProperty
  75.             Height          =   300
  76.             Index           =   0
  77.             Left            =   0
  78.             TabIndex        =   38
  79.             Top             =   60
  80.             Width           =   4995
  81.          End
  82.       End
  83.    End
  84.    Begin VB.PictureBox picContainer 
  85.       Height          =   2115
  86.       Index           =   0
  87.       Left            =   180
  88.       ScaleHeight     =   2055
  89.       ScaleWidth      =   4095
  90.       TabIndex        =   1
  91.       Top             =   1680
  92.       Width           =   4155
  93.       Begin VB.TextBox txtZip 
  94.          Height          =   285
  95.          Index           =   0
  96.          Left            =   2700
  97.          TabIndex        =   12
  98.          Top             =   1620
  99.          Width           =   1275
  100.       End
  101.       Begin VB.TextBox txtState 
  102.          Height          =   285
  103.          Index           =   0
  104.          Left            =   720
  105.          TabIndex        =   10
  106.          Top             =   1620
  107.          Width           =   615
  108.       End
  109.       Begin VB.TextBox txtCity 
  110.          Height          =   285
  111.          Index           =   0
  112.          Left            =   720
  113.          TabIndex        =   8
  114.          Top             =   1200
  115.          Width           =   3255
  116.       End
  117.       Begin VB.TextBox txtStreet 
  118.          Height          =   285
  119.          Index           =   0
  120.          Left            =   720
  121.          TabIndex        =   6
  122.          Top             =   780
  123.          Width           =   3255
  124.       End
  125.       Begin VB.TextBox txtName 
  126.          Height          =   285
  127.          Index           =   0
  128.          Left            =   720
  129.          TabIndex        =   4
  130.          Top             =   360
  131.          Width           =   3255
  132.       End
  133.       Begin VB.Label lblZip 
  134.          Caption         =   "Zip:"
  135.          ForeColor       =   &H00800000&
  136.          Height          =   195
  137.          Index           =   0
  138.          Left            =   2340
  139.          TabIndex        =   11
  140.          Top             =   1650
  141.          Width           =   375
  142.       End
  143.       Begin VB.Label lblState 
  144.          Caption         =   "State:"
  145.          ForeColor       =   &H00800000&
  146.          Height          =   195
  147.          Index           =   0
  148.          Left            =   180
  149.          TabIndex        =   9
  150.          Top             =   1650
  151.          Width           =   555
  152.       End
  153.       Begin VB.Label lblCity 
  154.          Caption         =   "City:"
  155.          ForeColor       =   &H00800000&
  156.          Height          =   195
  157.          Index           =   0
  158.          Left            =   180
  159.          TabIndex        =   7
  160.          Top             =   1230
  161.          Width           =   555
  162.       End
  163.       Begin VB.Label lblStreet 
  164.          Caption         =   "Street:"
  165.          ForeColor       =   &H00800000&
  166.          Height          =   195
  167.          Index           =   0
  168.          Left            =   180
  169.          TabIndex        =   5
  170.          Top             =   810
  171.          Width           =   555
  172.       End
  173.       Begin VB.Label lblName 
  174.          Caption         =   "Name:"
  175.          ForeColor       =   &H00800000&
  176.          Height          =   195
  177.          Index           =   0
  178.          Left            =   180
  179.          TabIndex        =   3
  180.          Top             =   405
  181.          Width           =   555
  182.       End
  183.       Begin VB.Label lblCaption 
  184.          BackColor       =   &H8000000D&
  185.          Caption         =   "Click Me"
  186.          BeginProperty Font 
  187.             name            =   "MS Sans Serif"
  188.             charset         =   0
  189.             weight          =   700
  190.             size            =   9.75
  191.             underline       =   0   'False
  192.             italic          =   0   'False
  193.             strikethrough   =   0   'False
  194.          EndProperty
  195.          ForeColor       =   &H8000000E&
  196.          Height          =   240
  197.          Index           =   0
  198.          Left            =   0
  199.          TabIndex        =   2
  200.          Top             =   0
  201.          Width           =   4335
  202.       End
  203.    End
  204.    Begin VB.PictureBox picContainer 
  205.       Height          =   2115
  206.       Index           =   1
  207.       Left            =   720
  208.       ScaleHeight     =   2055
  209.       ScaleWidth      =   4095
  210.       TabIndex        =   13
  211.       Top             =   1380
  212.       Width           =   4155
  213.       Begin VB.TextBox txtName 
  214.          BorderStyle     =   0  'None
  215.          Height          =   285
  216.          Index           =   1
  217.          Left            =   720
  218.          TabIndex        =   18
  219.          Top             =   360
  220.          Width           =   3255
  221.       End
  222.       Begin VB.TextBox txtStreet 
  223.          BorderStyle     =   0  'None
  224.          Height          =   285
  225.          Index           =   1
  226.          Left            =   720
  227.          TabIndex        =   17
  228.          Top             =   780
  229.          Width           =   3255
  230.       End
  231.       Begin VB.TextBox txtCity 
  232.          BorderStyle     =   0  'None
  233.          Height          =   285
  234.          Index           =   1
  235.          Left            =   720
  236.          TabIndex        =   16
  237.          Top             =   1200
  238.          Width           =   3255
  239.       End
  240.       Begin VB.TextBox txtState 
  241.          BorderStyle     =   0  'None
  242.          Height          =   285
  243.          Index           =   1
  244.          Left            =   720
  245.          TabIndex        =   15
  246.          Top             =   1620
  247.          Width           =   615
  248.       End
  249.       Begin VB.TextBox txtZip 
  250.          BorderStyle     =   0  'None
  251.          Height          =   285
  252.          Index           =   1
  253.          Left            =   2700
  254.          TabIndex        =   14
  255.          Top             =   1620
  256.          Width           =   1275
  257.       End
  258.       Begin VB.Label lblCaption 
  259.          BackColor       =   &H8000000D&
  260.          Caption         =   "Click Me"
  261.          BeginProperty Font 
  262.             name            =   "MS Sans Serif"
  263.             charset         =   0
  264.             weight          =   700
  265.             size            =   9.75
  266.             underline       =   0   'False
  267.             italic          =   0   'False
  268.             strikethrough   =   0   'False
  269.          EndProperty
  270.          ForeColor       =   &H8000000E&
  271.          Height          =   240
  272.          Index           =   1
  273.          Left            =   0
  274.          TabIndex        =   24
  275.          Top             =   0
  276.          Width           =   4335
  277.       End
  278.       Begin VB.Label lblName 
  279.          Caption         =   "Name:"
  280.          ForeColor       =   &H000000C0&
  281.          Height          =   195
  282.          Index           =   1
  283.          Left            =   120
  284.          TabIndex        =   23
  285.          Top             =   375
  286.          Width           =   495
  287.       End
  288.       Begin VB.Label lblStreet 
  289.          Caption         =   "Street:"
  290.          ForeColor       =   &H000000C0&
  291.          Height          =   195
  292.          Index           =   1
  293.          Left            =   120
  294.          TabIndex        =   22
  295.          Top             =   795
  296.          Width           =   495
  297.       End
  298.       Begin VB.Label lblCity 
  299.          Caption         =   "City:"
  300.          ForeColor       =   &H000000C0&
  301.          Height          =   195
  302.          Index           =   1
  303.          Left            =   120
  304.          TabIndex        =   21
  305.          Top             =   1215
  306.          Width           =   495
  307.       End
  308.       Begin VB.Label lblState 
  309.          Caption         =   "State:"
  310.          ForeColor       =   &H000000C0&
  311.          Height          =   195
  312.          Index           =   1
  313.          Left            =   120
  314.          TabIndex        =   20
  315.          Top             =   1635
  316.          Width           =   495
  317.       End
  318.       Begin VB.Label lblZip 
  319.          Caption         =   "Zip:"
  320.          ForeColor       =   &H000000C0&
  321.          Height          =   195
  322.          Index           =   1
  323.          Left            =   2280
  324.          TabIndex        =   19
  325.          Top             =   1635
  326.          Width           =   315
  327.       End
  328.    End
  329.    Begin VB.PictureBox picContainer 
  330.       Height          =   2115
  331.       Index           =   2
  332.       Left            =   1260
  333.       ScaleHeight     =   2055
  334.       ScaleWidth      =   4095
  335.       TabIndex        =   25
  336.       Top             =   1080
  337.       Width           =   4155
  338.       Begin VB.TextBox txtName 
  339.          Height          =   285
  340.          Index           =   2
  341.          Left            =   840
  342.          TabIndex        =   30
  343.          Top             =   360
  344.          Width           =   3135
  345.       End
  346.       Begin VB.TextBox txtStreet 
  347.          Height          =   285
  348.          Index           =   2
  349.          Left            =   840
  350.          TabIndex        =   29
  351.          Top             =   780
  352.          Width           =   3135
  353.       End
  354.       Begin VB.TextBox txtCity 
  355.          Height          =   285
  356.          Index           =   2
  357.          Left            =   840
  358.          TabIndex        =   28
  359.          Top             =   1200
  360.          Width           =   3135
  361.       End
  362.       Begin VB.TextBox txtState 
  363.          Height          =   285
  364.          Index           =   2
  365.          Left            =   840
  366.          TabIndex        =   27
  367.          Top             =   1620
  368.          Width           =   615
  369.       End
  370.       Begin VB.TextBox txtZip 
  371.          Height          =   285
  372.          Index           =   2
  373.          Left            =   2820
  374.          TabIndex        =   26
  375.          Top             =   1620
  376.          Width           =   1155
  377.       End
  378.       Begin VB.Label lblCaption 
  379.          BackColor       =   &H8000000D&
  380.          Caption         =   "Click Me"
  381.          BeginProperty Font 
  382.             name            =   "MS Sans Serif"
  383.             charset         =   0
  384.             weight          =   700
  385.             size            =   9.75
  386.             underline       =   0   'False
  387.             italic          =   0   'False
  388.             strikethrough   =   0   'False
  389.          EndProperty
  390.          ForeColor       =   &H8000000E&
  391.          Height          =   240
  392.          Index           =   2
  393.          Left            =   0
  394.          TabIndex        =   36
  395.          Top             =   0
  396.          Width           =   4335
  397.       End
  398.       Begin VB.Label lblName 
  399.          Alignment       =   2  'Center
  400.          BackColor       =   &H80000005&
  401.          Caption         =   "Name:"
  402.          Height          =   195
  403.          Index           =   2
  404.          Left            =   120
  405.          TabIndex        =   35
  406.          Top             =   375
  407.          Width           =   615
  408.       End
  409.       Begin VB.Label lblStreet 
  410.          Alignment       =   2  'Center
  411.          BackColor       =   &H80000005&
  412.          Caption         =   "Street:"
  413.          Height          =   195
  414.          Index           =   2
  415.          Left            =   120
  416.          TabIndex        =   34
  417.          Top             =   795
  418.          Width           =   615
  419.       End
  420.       Begin VB.Label lblCity 
  421.          Alignment       =   2  'Center
  422.          BackColor       =   &H80000005&
  423.          Caption         =   "City:"
  424.          Height          =   195
  425.          Index           =   2
  426.          Left            =   120
  427.          TabIndex        =   33
  428.          Top             =   1215
  429.          Width           =   615
  430.       End
  431.       Begin VB.Label lblState 
  432.          Alignment       =   2  'Center
  433.          BackColor       =   &H80000005&
  434.          Caption         =   "State:"
  435.          Height          =   195
  436.          Index           =   2
  437.          Left            =   120
  438.          TabIndex        =   32
  439.          Top             =   1635
  440.          Width           =   615
  441.       End
  442.       Begin VB.Label lblZip 
  443.          Alignment       =   2  'Center
  444.          BackColor       =   &H80000005&
  445.          Caption         =   "Zip:"
  446.          Height          =   195
  447.          Index           =   2
  448.          Left            =   2280
  449.          TabIndex        =   31
  450.          Top             =   1635
  451.          Width           =   435
  452.       End
  453.    End
  454.    Begin VB.Label Label2 
  455.       Caption         =   $"3DContainers.frx":000C
  456.       Height          =   975
  457.       Left            =   180
  458.       TabIndex        =   41
  459.       Top             =   180
  460.       Width           =   3975
  461.    End
  462. Attribute VB_Name = "frm3DContainers"
  463. Attribute VB_Creatable = False
  464. Attribute VB_Exposed = False
  465. Option Explicit
  466. Dim mo3D As New C3D
  467. Private Sub Form_Load()
  468.     CenterForm Me
  469.     With mo3D
  470.         Set .Container = picContainer(0)
  471.             .Style = gnFLOATING
  472.             .Caption lblName(0), gnUSE_CONTROL_FONT
  473.             .Caption lblStreet(0), gnUSE_CONTROL_FONT
  474.             .Caption lblCity(0), gnUSE_CONTROL_FONT
  475.             .Caption lblState(0), gnUSE_CONTROL_FONT
  476.             .Caption lblZip(0), gnUSE_CONTROL_FONT
  477.             .DropShadow txtName(0)
  478.             .DropShadow txtStreet(0)
  479.             .DropShadow txtCity(0)
  480.             .DropShadow txtState(0)
  481.             .DropShadow txtZip(0)
  482.         Set .Container = picContainer(1)
  483.             .Style = gnRAISED
  484.             .Caption lblName(1), gnUSE_CONTROL_FONT
  485.             .Caption lblStreet(1), gnUSE_CONTROL_FONT
  486.             .Caption lblCity(1), gnUSE_CONTROL_FONT
  487.             .Caption lblState(1), gnUSE_CONTROL_FONT
  488.             .Caption lblZip(1), gnUSE_CONTROL_FONT
  489.             .Border txtName(1)
  490.             .Border txtStreet(1)
  491.             .Border txtCity(1)
  492.             .Border txtState(1)
  493.             .Border txtZip(1)
  494.         Set .Container = picContainer(2)
  495.             .DropShadow lblName(2)
  496.             .DropShadow lblStreet(2)
  497.             .DropShadow lblCity(2)
  498.             .DropShadow lblState(2)
  499.             .DropShadow lblZip(2)
  500.         Set .Container = picLabelContainer
  501.             .Style = gnRAISED
  502.             .Caption Label1(0), gnUSE_CONTROL_FONT
  503.             .Caption Label1(1), gnUSE_CONTROL_FONT
  504.     End With
  505. End Sub
  506. Private Sub Form_Unload(Cancel As Integer)
  507.     Set mo3D = Nothing
  508.     Set frm3DFrames = Nothing
  509. End Sub
  510. Private Sub cmdClose_Click()
  511.     Unload Me
  512. End Sub
  513. Private Sub lblCaption_Click(Index As Integer)
  514.     picContainer(Index).ZOrder
  515. End Sub
  516. Private Sub picContainer_Click(Index As Integer)
  517.     picContainer(Index).ZOrder
  518. End Sub
  519.